<%@ include file="../header.jsp" %>
<%@ page import="admin.system.func.*" %>
<script language=javascript>
 function formValidation() {
    var d1 = fm.func_id;
    var d2 = fm.func_name;
    if (isNull(d1,"Function ID")||isNull(d2,"Function Name"))  {
       return false;
    }
    return true;
 }
<%
    FuncBean func = (FuncBean)request.getAttribute("func");
    if (func==null)
       func = new Func();
%>
</script>
<body>
<h2>Function Maintenance</h2>
<form id=fm method=post action=<%=contextPath%>/servlet/admin.system.func.FuncServlet >
<input type=hidden name=formAction value=<%=formAction%> >
<table cols=2 border=0 >
<tr>
  <td>Function ID</td>
  <td><input type=text name=func_id value="<%=func.getFunc_id()%>" maxlength=10 <%=readOnly%> ></td>
</tr>
<tr>
  <td>Function Name</td>
  <td><input type=text name=func_name value="<%=func.getFunc_name()%>" maxlength=50></td>
</tr>
<tr>
  <td>Parent ID</td>
  <td><input type=text name=parent_id value="<%=func.getParent_id()%>" maxlength=10></td>
</tr>
<tr>
  <td>URL</td>
  <td><input type=text name=url value="<%=func.getUrl()%>" maxlength=100></td>
</tr>
<tr>
  <td>Division</td>
  <td><input type=text name=division value="<%=func.getDivision()%>" maxlength=100></td>
</tr>
<tr>
  <td>Sequence</td>
  <td><input type=text name=sequence value="<%=func.getSequence()%>" maxlength=10></td>
</tr>
</table>
<hr>
<p>
  <INPUT type=button value=Save onclick="save()" >
  <INPUT type=button value=Delete  onclick="deleteRecord()"  >
  <INPUT type=reset  value=Cancel >
</p>
</form>
<%@ include file="../footer.jsp" %>
</body>
</body>
</html>

